package com.ph.shopping.facade.mapper;

import com.ph.shopping.common.core.base.BaseMapper;
import com.ph.shopping.facade.member.dto.QueryMemberAuthDto;
import com.ph.shopping.facade.member.entity.MemberAuth;
import com.ph.shopping.facade.member.vo.MemberAuthVo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @项目：phshopping-service-member
 * @描述：推广师mapper
 * @作者： Mr.zheng
 * @创建时间：2017-03-17
 * @Copyright @2017 by Mr.zheng
 */
public interface MemberAuthMapper extends BaseMapper<MemberAuth> {

    /**
     * 通过会员id查询推广师
     * @param memberID
     * @return
     */
    MemberAuth selectMemAuthByMemId(@Param("memberID") Long memberID);

    /**
     * 通过账号查询推广师
     * @param account
     * @return
     */
    MemberAuth selectMemAuthByAcc(@Param("account") String account);
    
    
    /**
     * 查询推广师列表
     * @param queryMemberAuthDto
     * @return
     */
    List<MemberAuthVo> selectMemAuthList(QueryMemberAuthDto queryMemberAuthDto);
    
    /**
     * 修改推广师状态
     * @param memberAuth
     * @return
     */
    int updateStatus(MemberAuth memberAuth);
    
    /**
     * 删除推广师
     * @param memberAuth
     * @return
     */
    int deleteMemberAuth(MemberAuth memberAuth);


}
